﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections;
using System.Collections.Generic;

using BEX.DataAccess;
using BEX.Core;

namespace AutomatedTesting
{
    [TestClass]
    public class SupportDataRetrieval
    {
        [TestMethod]
        public void unit_retrieve_base_currencies()
        {
            List<CurrencyType> _base = ExchangeDAL.GetAllBaseCurrencies();

            Assert.IsTrue(_base.Count == 2);

            Assert.IsTrue(_base.Contains(CurrencyType.BTC));
            Assert.IsTrue(_base.Contains(CurrencyType.LTC));
        }

        [TestMethod]
        public void unit_retrieve_counter_currencies()
        {
            List<CurrencyType> _counter = ExchangeDAL.GetAllCounterCurrencies();

            Assert.IsTrue(_counter.Count == 17);

            Assert.IsTrue(_counter.Contains(CurrencyType.AUD));
            Assert.IsTrue(_counter.Contains(CurrencyType.CAD));
            Assert.IsTrue(_counter.Contains(CurrencyType.CHF));
            Assert.IsTrue(_counter.Contains(CurrencyType.CNY));
            Assert.IsTrue(_counter.Contains(CurrencyType.DKK));
            Assert.IsTrue(_counter.Contains(CurrencyType.EUR));
            Assert.IsTrue(_counter.Contains(CurrencyType.GBP));
            Assert.IsTrue(_counter.Contains(CurrencyType.HKD));
            Assert.IsTrue(_counter.Contains(CurrencyType.JPY));
            //Assert.IsTrue(_counter.Contains(CurrencyType.LTC));
            Assert.IsTrue(_counter.Contains(CurrencyType.NOK));
            Assert.IsTrue(_counter.Contains(CurrencyType.NZD));
            Assert.IsTrue(_counter.Contains(CurrencyType.PLN));
            Assert.IsTrue(_counter.Contains(CurrencyType.RUB));
            Assert.IsTrue(_counter.Contains(CurrencyType.SEK));
            Assert.IsTrue(_counter.Contains(CurrencyType.SGD));
            Assert.IsTrue(_counter.Contains(CurrencyType.THB));
            Assert.IsTrue(_counter.Contains(CurrencyType.USD));
        }
    }
}
